package com.chinasoft.tw.service.keshiying;
import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class ksy implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public ksy() {
        this.name = "学生 柯诗莹";
        wordList.add("明天放假了 ！");
        wordList.add("大家都happy ！");
        wordList.add("明天疯狂星期四！");
    }
    @Override
    public Info getTrueWord() {
        Info info = new Info(name, wordList.get(random.nextInt(wordList.size())));
        return info;
    }
}
